package com.team.order.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegionOrderStatisticsVO {
    // 区域名称
    private String regionName;
    // 维修订单数量
    private int maintenanceCount;
    // 保养订单数量
    private int careCount;
    // 洗车订单数量
    private int washCount;
    // 总订单数量
    private int totalCount;

    public RegionOrderStatisticsVO(String s) {
        regionName = s;
    }

    public void incrementMaintenance() {
        maintenanceCount++;
    }

    public void incrementCare() {
        careCount++;
    }

    public void incrementWash() {
        washCount++;
    }

    public void incrementTotal() {
        totalCount++;
    }

    public void add(RegionOrderStatisticsVO other) {
        this.maintenanceCount += other.maintenanceCount;
        this.careCount += other.careCount;
        this.washCount += other.washCount;
        this.totalCount += other.totalCount;
    }
}
